package es.ucm.fdi.isbc.viviendas.representacion;

import jcolibri.cbrcore.CBRCase;

public class CoincidenciaFavorito implements Comparable<CoincidenciaFavorito> {
	private double cont;
	private CBRCase caso;
	
	public CoincidenciaFavorito(CBRCase c){
		caso=c;
		cont=0.0;
	}

	public double getCont() {
		return cont;
	}

	public void setCont(double cont) {
		this.cont = cont;
	}

	public CBRCase getCaso() {
		return caso;
	}

	@Override
	public int compareTo(CoincidenciaFavorito o) {
		if(this.cont < o.cont) return 1;
		else
			if(this.cont == o.cont) return 0;
			else return -1;
	}
	
	public String toString(){
		return ((Double)cont).toString();
	}
	
}
